/*
 * Copyright 2016-2017 Leon Chen
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.moilioncircle.redis.replicator.rdb.datatype;

import java.io.Serializable;

/**
 * @author Leon Chen
 * @since 3.9.0
 */
public class Slot  implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    private long slotId;
    private long slotSize;
    private long expiresSlotSize;
    
    public Slot() {
    }
    
    public Slot(long slotId, long slotSize, long expiresSlotSize) {
        this.slotId = slotId;
        this.slotSize = slotSize;
        this.expiresSlotSize = expiresSlotSize;
    }
    
    public long getSlotId() {
        return slotId;
    }
    
    public void setSlotId(long slotId) {
        this.slotId = slotId;
    }
    
    public long getSlotSize() {
        return slotSize;
    }
    
    public void setSlotSize(long slotSize) {
        this.slotSize = slotSize;
    }
    
    public long getExpiresSlotSize() {
        return expiresSlotSize;
    }
    
    public void setExpiresSlotSize(long expiresSlotSize) {
        this.expiresSlotSize = expiresSlotSize;
    }
    
    @Override
    public String toString() {
        return "Slot{" +
                "slotId=" + slotId +
                ", slotSize=" + slotSize +
                ", expiresSlotSize=" + expiresSlotSize +
                '}';
    }
}
